from django.db import models


class Category(models.Model):
    """类别模型类"""
    title = models.CharField('类别名称', max_length=20)
    parent_id = models.IntegerField('父级类别ID', default=0)

    class Meta:
        db_table = 'category'
